package com.xqm.springcloud.myrule;
import com.netflix.loadbalancer.IRule;

import org.springframework.context.annotation.Bean;

/**
 * @author ShiMing
 * @version 1.0
 * @name MyRule
 * @description TODO
 * @date 2020/8/21
 */

public class MyRule {

    /**
     * 将自定义负载均衡策略添加到容器
     *
     * @return
     */
    @Bean
    public IRule myRule1() {
        return new MyRandomRule();
    }
}
